import Layout from '@/page/index/'

export default [{
    path: '/wel',
    component: Layout,
    redirect: '/wel/index',
    children: [{
      path: 'index',
      name: '首页',
      meta: {
        i18n: 'dashboard'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/wel/index')
    }, {
      path: 'dashboard',
      name: '控制台',
      meta: {
        i18n: 'dashboard',
        menu: false,
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/wel/dashboard')
    }]
  },
  {
    path: '/accessServicePage',
    component: Layout,
    redirect: '/accessServicePage',
    children: [{
      path: '/rb-oem/accesssRecord/accessServicePage',
      name: '服务商访问记录',
      component: () =>
        import('@/views/rb-oem/accesssRecord/accessServicePage')
    }, ]
  },
  {
    path: '/feetMerTempalet',
    component: Layout,
    redirect: '/feetMerTempalet',
    children: [{
        path: '/rb-oem/feetMer/payment/feetMerTempalet',
        name: '内容设计',
        component: () =>
          import('@/views/rb-oem/feetMer/component/feetMerTempalet')
      },
      {
        path: '/rb-oem/feetMer/payment/feet_user_trade',
        name: '缴费记录',
        component: () =>
          import('@/views/rb-oem/feetMer/feet_user_trade')
      }

    ]
  },
  {
    path: '/service_info_details',
    component: Layout,
    redirect: '/service_info_details',
    children: [{
      path: '/rb-oem/serviceinfo/service_info_details',
      name: '服务商详情',
      meta: {
        i18n: 'service_info_details'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-oem/serviceinfo/service_info_details')
    }]
  }, {
    path: '/pos_info_details',
    component: Layout,
    redirect: '/pos_info_details',
    children: [{
        path: '/rb-oem/posinfo/pos_info_net_add',
        name: '新增商户',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_net')
      },
      {
        path: '/rb-oem/posinfo/pos_info_net_edit',
        name: '编辑商户',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_net')
      },
      {
        path: '/rb-oem/posinfo/pos_info_details',
        name: '商户详情',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_details')
      },
      {
        path: '/rb-oem/posinfo/pos_info_reg_add',
        name: '登记商户',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_register')
      },
      {
        path: '/rb-oem/posinfo/pos_info_reg_edit',
        name: '编辑商户',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_register')
      },
      {
        path: '/rb-oem/posinfo/pos_info_reg_details',
        name: '商户详情',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_reg_details')
      },
      {
        path: '/rb-oem/posinfo/pos_info_images_preview',
        name: '资质证件照预览',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/pos_info_images_preview')
      },
      {
        path: '/rb-oem/posinfo/manage',
        name: '店员管理',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/manage')
      },
      {
        path: '/rb-oem/posinfo/pos_info_images',
        name: '资质证件照补充',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/pos_info_images')
      },
      {
        path: '/rb-oem/posinfo/pos_info_details_activity',
        name: '实名认证',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/pos_info_details_activity')
      },
      {
        path: '/rb-oem/posinfo/pos_info_rate',
        name: '签约费率',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/pos_info_rate')
      },
      {
        path: '/rb-oem/posinfo/videoDrainage',
        name: '视频引流',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/videoDrainage')
      },
      {
        path: '/rb-oem/posinfo/private',
        name: '私域管理',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/private')
      },
      {
        path: '/rb-oem/posinfo/pos_info_aisle',
        name: '通道配置',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/pos_info_aisle')
      },
      {
        path: '/rb-oem/posinfo/pos_info_aislepay',
        name: '支付公司配置',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/pos_info_aislepay')
      },
      {
        path: '/rb-oem/posinfo/pos_info_store',
        name: '门店管理',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/pos_info_store')
      },
      {
        path: '/rb-oem/posinfo/store',
        name: '绑定门店',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/terminalStore/store')
      },
      {
        path: '/rb-oem/posinfo/cashier',
        name: '绑定收银员',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/terminalStore/cashier')
      },
      {
        path: '/rb-oem/posinfo/terminal',
        name: '绑定终端',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/terminalStore/terminal')
      },
      {
        path: '/rb-oem/posinfo/terminal/store/sound',
        name: '绑定音响',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/store/sound')
      },
      {
        path: '/rb-oem/posinfo/terminal/store/printer',
        name: '绑定打印机',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/store/printer')
      },
      {
        path: '/rb-oem/posinfo/terminal/cashier/sound',
        name: '绑定音响',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/cashier/sound')
      },
      {
        path: '/rb-oem/posinfo/terminal/cashier/printer',
        name: '绑定打印机',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/cashier/printer')
      },
      {
        path: '/rb-oem/posinfo/terminal/taika/sound',
        name: '绑定音响',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/taika/sound')
      },
      {
        path: '/rb-oem/posinfo/terminal/taika/printer',
        name: '绑定打印机',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/taika/printer')
      },
      {
        path: '/rb-oem/posinfo/pos_info_store_details',
        name: '管理门店',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/pos_info_store_details')
      },
      {
        path: '/rb-oem/posinfo/pos_info_cashier',
        name: '收银员管理',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/pos_info_cashier')
      },
      {
        path: '/rb-oem/posinfo/pos_info_terminal',
        name: '终端管理',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/pos_info_terminal')
      },
      {
        path: '/rb-oem/posinfo/pluginUnit',
        name: '第三方插件管理',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/pluginUnit')
      },
      {
        path: '/rb-oem/posinfo/pos_info_terminal_bind',
        name: '终端管理',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/pos_info_terminal_bind')
      },
      {
        path: '/rb-oem/posinfo/pos_info_equipment',
        name: '设备管理',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_menu/pos_info_equipment')
      }
    ]
  },
  {
    path: '/orderList',
    component: Layout,
    children: [{
        path: '/rb-oem/shop/orderListDetail',
        name: '订单详情',
        component: () => import('@/views/rb-oem/shop/orderListDetail')
      },
      {
        path: '/rb-oem/shop/orderListDetails',
        name: '划库发货',
        meta: {
          keepAlive: true
        },
        component: () => import('@/views/rb-oem/shop/orderListDetails')
      }
    ]
  },
  {
    path: '/pos_group_details',
    component: Layout,
    redirect: '/pos_group_details',
    children: [{
      path: '/rb-oem/posgroup/pos_group_details',
      name: '集团商户详情',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-oem/posgroup/pos_group_details')
    }]
  },
  {
    path: '/mer_change_alter',
    component: Layout,
    redirect: '/mer_change_alter',
    children: [{
        path: '/rb-oem/merrecord/mer_change_menu/mer_change_alter',
        name: '商户变更',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/merrecord/mer_change_menu/mer_change_alter')
      },
      {
        path: '/rb-oem/merrecord/mer_change_menu/mer_change_modify',
        name: '变更驳回编辑',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/merrecord/mer_change_menu/mer_change_alter')
      },
      {
        path: '/rb-oem/merrecord/mer_change_menu/mer_change_details',
        name: '商户变更详情',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/merrecord/mer_change_menu/mer_change_details')
      }
    ]
  },
  {
    path: '/pos_info_audit_edit',
    component: Layout,
    redirect: '/pos_info_audit_edit',
    children: [{
      path: '/rb-oem/posinfo/pos_info_audit_edit',
      name: '商户修改',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-oem/posinfo/pos_info_audit_edit')
    }]
  },
  {
    path: '/payinvoice_pages',
    component: Layout,
    redirect: '/payinvoice_pages',
    children: [{
      path: '/rb-oem/payinvoice/payinvoice_menu',
      name: '支付即开票',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-oem/payinvoice/payinvoice_menu')
    }, {
      path: '/rb-oem/payinvoice/payinvoice_details',
      name: '开票详情',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-oem/payinvoice/payinvoice_details')
    }, {
      path: '/rb-oem/payinvoice/payinvoice_pages',
      name: '常用配置',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-oem/payinvoice/payinvoice_pages')
    }, {
      path: '/rb-oem/payinvoice/payinvoice_default',
      name: '默认开票设置',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-oem/payinvoice/payinvoice_default')
    }, {
      path: '/rb-oem/payinvoice/payinvoice_page_make',
      name: '开票人信息',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-oem/payinvoice/payinvoice_config/payinvoice_page_make')
    }, {
      path: '/rb-oem/payinvoice/payinvoice_page_sales',
      name: '销方信息',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-oem/payinvoice/payinvoice_config/payinvoice_page_sales')
    }, {
      path: '/rb-oem/payinvoice/payinvoice_page_goods',
      name: '商品信息',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-oem/payinvoice/payinvoice_config/payinvoice_page_goods')
    }, {
      path: '/rb-oem/payinvoice/payinvoice_page_buy',
      name: '购方信息',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-oem/payinvoice/payinvoice_config/payinvoice_page_buy')
    }]
  },
  {
    path: '/ticket_record',
    component: Layout,
    redirect: '/ticket_record',
    children: [{
      path: '/rb-oem/ticket/ticket_record',
      name: '单独活动统计',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-oem/ticket/ticket_record')
    }]
  },
  {
    path: '/rpi_member_details',
    component: Layout,
    redirect: '/rpi_member_details',
    children: [{
      path: '/rb-oem/rpiMemberOem/rpi_member_details',
      name: '商户会员详情',
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/rb-oem/rpiMemberOem/rpiMemberOemListDetails')
    }]
  },
  {
    path: '/store',
    component: Layout,
    redirect: '/store',
    children: [{
        path: '/rb-oem/store/stock_storage',
        name: '库存入库',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/store/stock_menu/stock_storage')
      },
      {
        path: '/rb-oem/store/stock_allot',
        name: '库存调拨',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/store/stock_menu/stock_allot')
      },
      {
        path: '/rb-oem/store/stock_rebate',
        name: '库存回拨',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/store/stock_menu/stock_rebate')
      }
    ]
  }, {
    path: '/active',
    component: Layout,
    redirect: '/store',
    children: [{
        path: '/rb-oem/active/active_add',
        name: '设备活动配置',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/active/active_menu/active_configure')
      },
      {
        path: '/rb-oem/active/active_edit',
        name: '设备活动编辑',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/active/active_menu/active_configure')
      }
    ]
  }, {
    path: '/test',
    component: Layout,
    redirect: '/test/index',
    children: [{
      path: 'index',
      name: '测试页',
      meta: {
        i18n: 'test'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/util/test')
    }]
  }, {
    path: '/dict-horizontal',
    component: Layout,
    redirect: '/dict-horizontal/index',
    children: [{
      path: 'index',
      name: '字典管理',
      meta: {
        i18n: 'dict'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal')
    }]
  }, {
    path: '/dict-vertical',
    component: Layout,
    redirect: '/dict-vertical/index',
    children: [{
      path: 'index',
      name: '字典管理',
      meta: {
        i18n: 'dict'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical')
    }]
  }, {
    path: '/info',
    component: Layout,
    redirect: '/info/index',
    children: [{
      path: 'index',
      name: '个人信息',
      meta: {
        i18n: 'info'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/system/userinfo')
    }]
  }, {
    path: '/work/process/leave',
    component: Layout,
    redirect: '/work/process/leave/form',
    children: [{
      path: 'form/:processDefinitionId',
      name: '请假流程',
      meta: {
        i18n: 'work'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/work/process/leave/form')
    }, {
      path: 'handle/:taskId/:processInstanceId/:businessId',
      name: '处理请假流程',
      meta: {
        i18n: 'work'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/work/process/leave/handle')
    }, {
      path: 'detail/:processInstanceId/:businessId',
      name: '请假流程详情',
      meta: {
        i18n: 'work'
      },
      component: () =>
        import( /* webpackChunkName: "views" */ '@/views/work/process/leave/detail')
    }]
  },
  {
    path: '/workflow',
    component: Layout,
    children: [{
        path: 'design/process/:id',
        name: '流程设计',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/plugin/workflow/design'),
      },
      {
        path: 'design/model/history/:id',
        name: '模型历史',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/plugin/workflow/design/model-history'),
      },
      {
        path: 'design/form/history/:id',
        name: '表单历史',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/plugin/workflow/design/form-history'),
      },
      {
        path: 'process/start/:params',
        name: '新建流程',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/plugin/workflow/process/components/form'),
      },
      {
        path: 'process/detail/:params',
        name: '流程详情',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/plugin/workflow/process/components/detail'),
      }
    ]
  },
  {
    path: '/deal_management_details',
    component: Layout,
    redirect: '/dealManagement/deal_management_details',
    children: [{
      path: 'deal_management_details',
      name: '交易详情',
      component: () => import( /* webpackChunkName: "views" */ '@/views/rb-oem/dealManagement/deal_management_details')
    }]
  },
  {
    path: '/serviceprofit',
    component: Layout,
    redirect: '/serviceprofit',
    children: [{
        path: 'service_profit_datail',
        name: '服务商分润明细详情',
        component: () => import( /* webpackChunkName: "views" */ '@/views/rb-oem/serviceprofit/service_profit_datail')
      },
      {
        path: 'profit_gather',
        name: '分润汇总',
        component: () => import( /* webpackChunkName: "views" */ '@/views/rb-oem/serviceprofit/profit_gather')
      }
    ]
  },
  {
    path: '/childOemProfit',
    component: Layout,
    redirect: '/childOemProfit',
    children: [{
        path: 'service_profit_datail',
        name: '机构分润明细详情',
        component: () => import( /* webpackChunkName: "views" */ '@/views/rb-oem/childOemProfit/service_profit_datail')
      },
      {
        path: 'profit_gather',
        name: '分润汇总',
        component: () => import( /* webpackChunkName: "views" */ '@/views/rb-oem/childOemProfit/profit_gather')
      }
    ]
  },
  {
    path: '/oemprofit',
    component: Layout,
    redirect: '/oemprofit',
    children: [{
        path: 'profit_datail',
        name: '分润详情',
        component: () => import( /* webpackChunkName: "views" */ '@/views/rb-oem/oemprofit/profit_datail')
      },
      {
        path: 'pos_profit_datail',
        name: '本级分润明细详情',
        component: () => import( /* webpackChunkName: "views" */ '@/views/rb-oem/oemprofit/pos_profit_datail')
      },
      {
        path: 'profit_gather',
        name: '分润汇总',
        component: () => import( /* webpackChunkName: "views" */ '@/views/rb-oem/oemprofit/profit_gather')
      }
    ]
  },
  {
    path: '/invoiceMail',
    component: Layout,
    redirect: '/invoiceMail',
    children: [{
      path: 'invoice_mail_details',
      name: '发票详情',
      component: () => import('@/views/rb-oem/invoiceMail/invoice_mail_details')
    }]
  },

  {
    path: '/shop_order_details',
    component: Layout,
    redirect: '/shop_order_details',
    children: [{
      path: '/rb-oem/shopOrder/shopOrderDetail/shop_order_detail',
      name: '商品订单详情',
      component: () => import('@/views/rb-oem/shopOrder/shopOrderDetail/shop_order_detail')
    }]
  },

  {
    path: '/shopOrderShipments',
    component: Layout,
    redirect: '/shopOrderShipments',
    children: [{
      path: '/rb-oem/shopOrder/shopOrderDetail/shopOrderShipments',
      name: '商品确认收货',
      component: () => import('@/views/rb-oem/shopOrder/shopOrderDetail/shopOrderShipments')
    }]
  },

  // {
  //   path: '/shop_refund_examine',
  //   component: Layout,
  //   redirect: '/shop_refund_examine',
  //   children: [{
  //     path: '/rb-oem/shopRefund/shopRefundDetail/shop_refund_examine',
  //     name: '退款审核',
  //     component: () => import('@/views/rb-oem/shopRefund/shopRefundDetail/shop_refund_examine')
  //   }]
  // },

  {
    path: '/shop_refund_details',
    component: Layout,
    redirect: '/shop_refund_details',
    children: [{
      path: '/rb-oem/shopRefund/shopRefundDetail/shop_refund_details',
      name: '退款订单详情',
      component: () => import('@/views/rb-oem/shopRefund/shopRefundDetail/shop_refund_details')
    }]
  },
  {
    path: '/depositActivity',
    component: Layout,
    redirect: '/depositActivity',
    children: [{
      path: 'paymentDetailsView',
      name: '付款明细详情',
      component: () => import('@/views/rb-oem/depositActivity/paymentDetailsView')
    }]
  },
  {
    path: '/separate_project_details',
    component: Layout,
    redirect: '/separate_project_details',
    children: [{
      path: '/rb-oem/separateProject/separate_project_details',
      name: '分账项目详情',
      component: () => import('@/views/rb-oem/separateProject/separate_project_details')
    }]
  },
  {
    path: '/separate_merchant_details',
    component: Layout,
    redirect: '/separate_merchant_details',
    children: [{
        path: '/rb-oem/separateMerchant/separate_merchant_details',
        name: '分账商户详情',
        component: () => import('@/views/rb-oem/separateMerchant/separate_merchant_details')
      },
      {
        path: '/rb-oem/separateMerchant/separate_merchant_store',
        name: '分账门店管理',
        component: () =>
          import( /* webpackChunkName: "views" */ '@/views/rb-oem/separateMerchant/separate_merchant_store')
      }
    ]
  },
  {
    path: '/separate_order_details',
    component: Layout,
    redirect: '/separate_order_details',
    children: [{
      path: '/rb-oem/separateFunds/separate_order_details',
      name: '分账订单详情',
      component: () => import('@/views/rb-oem/separateFunds/separate_order_details')
    }]
  },
]
